-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci: Add markdownlint, test_converting_readme, and build_docs workflows #247
ci: Add markdownlint, test_converting_readme, and build_docs workflows #247
Conversation
I also fix markdownlint issues on README.md and structure it. |
Fixing ansible-lint errors in #247 |
* markdownlint runs against README.md to avoid any issues with converting it to HTML * test_converting_readme converts README.md > HTML and uploads this test artifact to ensure that conversion works fine * build_docs converts README.md > HTML and pushes the result to the docs branch to publish dosc to GitHub pages site
98dc3d4
to
886d78a
Compare
* Remove badges from README.md prior to converting to HTML * Replace Commitlint with PR Title Lint * Lint all markdown files except for CHANGELOG.md not just README.md * Use woke form from linux-system-roles
810d3d3
to
cfe08e3
Compare
.github/workflows/markdownlint.yml
Outdated
- name: Update pip, git | ||
run: | | ||
set -euxo pipefail | ||
sudo apt update | ||
sudo apt install -y git |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the name does not match the command. I see only git installation here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am good with the changes (except for the last note in README regarding the sshd_*
. It rewrites a lot of documentation though so I would like to hear @mattwillsher opinion too.
README.md
Outdated
* `sshd_...` | ||
#### sshd_ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we lost here the ...
so I am not sure how intuitive this is going to be without that. In official documentation we have sshd_<OptionName>
. Would using something like this work also here or can this be tweaked somehow to pass the linter?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, I missed this because markdownlint removed this automatically. markdownlint does not argue if I put ... or in a backtick. So, I used "sshd_<OptionName>
" to be consistent with the official documentation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Please merge |
After this is merged, you will be able to enable GitHub pages, build on branch docs from the docs/ directory. And then add URL to the page to the repo description like, I believe you can keep the link to your ansible-galaxy that's there already and add a link to GitHub pages separated by a comma |
@spetrosi sounds like the docs building failed after meging to master. Can you check what is the issue there or is just needed to allow the pages somewhere in the repo configuration? |
I think it needs a release build to generate the docs(?) |
Now, after master>main rename and after a PR that changes README.md has been merged, the docs are generated on The next time you create a new release with https://github.com/linux-system-roles/auto-maintenance/blob/main/role-merge-prs.sh it will also generate .README.html within the PR that updates CHANGELOG.md. |
Enhancement: Add markdownlint, test_converting_readme, and build_docs GitHub workflows
Reason: